//
//  BaseAccess.m
//  ZingBrowser
//
//  Created by -Xh- on 1/21/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import "BaseAccess.h"

@implementation BaseAccess


-(id)initWithDatabasePath:(NSString *)_dbPath{
    self=[super init];
    if(self){
        database=[FMDatabase databaseWithPath:_dbPath];
    }
    return self;
}

-(NSMutableArray *)getAllRecords{
    return [[NSMutableArray alloc]init];
}
-(NSMutableArray *)getRecordsFromSelectQuery:(NSString *)_query{
    return [[NSMutableArray alloc]init];
}
-(BOOL)insert:(BaseModel *)_object{
    return NO;
}
-(BOOL)updateObjectAtURL:(NSString *)_url withNewObject:(BaseModel *)_newObject{
    return NO;
}

-(BOOL)deleteAll{
    return NO;
}
-(BaseModel *)findByID:(NSString *)_id{
    return nil;
}
-(BOOL)deleteObjectAtURL:(NSString *)_url{
    return NO;
}

-(int)getTotalNumberOfRecords{
    NSMutableArray* recordsArray=[self getAllRecords];
    return recordsArray.count;
}
@end
